using System;
using ThatsMeSDK.Core;
using ThatsMeSDK;
using SDKTest;

namespace SDKTestForMono
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			Console.WriteLine("Test Project");
			
			//Other Kenrel tests
			//KernelTestFuncs.JsonDataLoaderTest();
			
			//Initialize Kernel
			ThatsMeSDK.Core.ServiceHandler.Initialize(DataFormat.Xml);
			
			Member m = ThatsMeSDK.Core.ServiceHandler.GetMemberByNick("tmdotnetapi");	
			GalleryPicture p = m.Categories[0].CategoryPictures[0];
			
			//
			string token = ThatsMeSDK.Core.ServiceHandler.Authenticate("tmdotnetapi", ThatsMeSDK.Core.ServiceHandler.CalculateMD5("nexpose"));
//			bool b = ThatsMeSDK.Core.ServiceHandler.AddPicRating(token, 466080, VoteType.Positive);
			/*
			//Kernel Test
			KernelTestFuncs.SendMessageTest();
			KernelTestFuncs.GetGalleryCategoriesTest();
			KernelTestFuncs.GetGalleryPicturesTest();
			
			KernelTestFuncs.LoadPicturesTest();
			KernelTestFuncs.LoadMessagesTest();
			KernelTestFuncs.CountMessagesTest();
			KernelTestFuncs.LoadMemberByIdTest();
            KernelTestFuncs.TestDashBoard();
			
			Console.Write("Press any key to continue . . . ");
			Console.ReadKey(true);
			*/
			KernelTestFuncsND testFuncsND = new KernelTestFuncsND();
			
			Console.Write("Tests finished. Press any key to exit");
			Console.ReadKey(true);
		}
	}
}

